package com.demo.service;

import com.spring.framework.annotation.MyService;

/**
 * @author ππ
 * @date 2020-11-16 9:20
 * @desc 声明service 实现类
 */
@MyService
public class DemoService implements IDemoService {
    @Override
    public String queryByName(String name) {
        return "Hello," + name +" From Service";
    }

    @Override
    public String add(String name) throws Exception {
        throw new Exception("故意抛出异常,验证AOP的异常切面");
    }
}
